#include <OgreMesh.h>
#include <OgrePrerequisites.h>
#include <OgreSharedPtr.h>

#define DLL_EXPORT __declspec(dllexport)

using namespace Ogre;

extern "C" DLL_EXPORT MeshPtr *getMeshPtr()
{
	return new MeshPtr();
}

extern "C" DLL_EXPORT Mesh *call_MeshPtr_getPointer(MeshPtr* ptr)
{
	return ptr->getPointer();
}

extern "C" DLL_EXPORT void call_MeshPtr_bind(MeshPtr* ptr, Mesh *rep, SharedPtrFreeMethod freeMethod)
{
	ptr->bind(rep, freeMethod);
}

extern "C" DLL_EXPORT bool call_MeshPtr_unique(MeshPtr* ptr)
{
	return ptr->unique();
}